const TokenKey = "adminToken";

export function getToken() {
  return JSON.parse(localStorage.getItem(TokenKey) || "");
}

export function setToken(token) {
  localStorage.setItem(TokenKey, token);
}

export function removeToken() {
  localStorage.removeItem("adminToken");
}
